package com.mi.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mi.common.mybatis.entity.BaseEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 字典类型
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/1 13:41
 */
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict")
public class Dict extends BaseEntity {

    /**
     * 字典类型
     */
    @TableField("type")
    private String type;

    /**
     * 字典描述
     */
    @TableField("description")
    private String description;

    /**
     * 是否系统内置（0-否,1-是）
     */
    @TableField("system")
    private Integer system;

    /**
     * 备注信息
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 删除标识（0-正常,1-删除）
     */
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
}
